#ifndef LISTNER_HPP
#define LISTNER_HPP

#include <coreconfigdefs.hpp>
#include <coredataqueue.hpp>
#include <coredataunit.hpp>
#include <coreconfigdefs.hpp>
#include <pland.hpp>
#include <boost/thread/mutex.hpp>
#include "workitem.hpp"

namespace kport
{
class Listner : public WorkItem
{
public:
	Listner(int sock, pland::SharedDQueue qout);
	~Listner();
	bool ready() throw(pland::Exeption);
	WorkItemStat work()  throw(pland::Exeption);
    WorkItem::TYPE type(){return WorkItem::IN;}
private:
	int sock_;
	pland::SharedDQueue qout_;
};
}
#endif // LISTNER_HPP
